@extends('home.authlayout')
@section('title','登录')
@section('content')
    <form action="{{url('doLogin')}}" method="post">
        {{ csrf_field() }}
        <div class="l1">
            <label>
                <span class="label">账户：</span>
                <input type="text" name="username" placeholder="输入账号" value="{{old('username')}}">

            </label>
        </div>
        <div class="help-block">
            @if ($errors->has('username'))
            <strong>{{ $errors->first('username') }}</strong>
            @endif
        </div>
        <div class="l1">
            <label>
                <span class="label">密码：</span>
                <input type="password" name="password" placeholder="输入正确密码" value="{{old('password')}}">
                <br>
            </label>
        </div>
        <div class="help-block">
            @if ($errors->has('username'))
                <strong>{{ $errors->first('password') }}</strong>
            @endif
        </div>
        <div class="btn">
            <input type="submit" class="submit" value="登录">
            <a href="{{url('/reg')}}" class="reg">申请账号</a>
            <a href="{{url('/find')}}" class="myfind">忘记密码？</a>
        </div>
    </form>


@endsection